import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Share')
export class Share extends Component {
    start() {
        var id = 'fPuCHgtRTT6kAY08QaN5dg==' // 通过 MP 系统审核的图片编号
        var url = 'https://mmocgame.qpic.cn/wechatgame/dDicxlMkOQDfiaALpybrWIRpJicYE2TGLP07BSickGyWLcnyTyKOElY3IiaPI76Xabvgz/0' // 通过 MP 系统审核的图片地址
        
        this.node.on(Node.EventType.TOUCH_START,(e)=>{
            wx.shareAppMessage({
                title:'	集中注意稳住双手',
                imageUrlId: id,
                imageUrl: url,
            })
        },this)
    }

    update(deltaTime: number) {
        
    }
}


